﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Net;
using System.Net.Sockets;

namespace IPSC
{
    public partial class Main : Form
    {
        Conexion cnn;
        Socket socket;
        public Main()
        {
            InitializeComponent();
            socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
        }

        private void btnAplicarConf_Click(object sender, EventArgs e)
        {
            if (txtPuerto.Text.Equals("") || txtServer.Text.Equals(""))
                MessageBox.Show("El campo \"servidor\" y \"puerto\" no pueden estar vacíos", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            else
            {
                cnn = new Conexion();
                cnn.setIpServer(txtServer.Text);
                cnn.setPuerto(txtPuerto.Text);
                MessageBox.Show("Parametros de conexión seteados","",MessageBoxButtons.OK,MessageBoxIcon.Information);
            }
        }

        private void btnEnviaQS_Click(object sender, EventArgs e)
        {
            
        }
    }
}
